<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>合同管理</title>
<%@ include file="/common/extjs.jsp"%>
<script type="text/javascript">
	$(document).ready(
			function() {
				var date = new Date();
				$.get(
						"${ctx}/business/history/history!info.action?key=${id}&time="
								+ date, function(data) {
							$("#frame").html(data);
						});

				$("#usern").click(function() {
					UserNameSelector.getView(function(a, c) {
						$("#usern").val(c);
						$("#value1").val(a);
					}, true).show();
				});
			});

	function close() {
		$.window.closeAll();
	}

	function conveyShow(id) {
		showWindow(
				'修改合同',
				'${ctx }/contract/according!input.action?cid=${id}&cFlag=1&decorator=open&confirm=true',
				{},
				function conveyReach() {
					window.location.href = "${ctx }/contract/document!judge.action?id="
							+ id;
				});
	}

	function conveyReach(id) {
		window.location.href = "${ctx }/contract/document!judge.action?id="
				+ id;
	}
</script>
</head>
<body>
	<form action="${ctx }/contract/document!submit.action" method="post"
		id="inputForm" class="yform">
		<div id="caption">
			<h6>签发意见</h6>
		</div>
		<input type="hidden" name="id" id="id" value="${id }"> <input
			type="hidden" name="taskid" id="taskid" value="${taskid }"> <input
			type="hidden" name="status" id="status" value="09">
		<div>
			<table class="noborder">
				<tr class="type-text">
					<td width="80">签发意见</td>
					<td colspan="3"><textarea name="view" rows="3"></textarea></td>
				</tr>
			</table>
		</div>
		<div id="caption">
			<h6>历史记录</h6>
		</div>
		<div id="frame"></div>
		<div class="type-button">
			<a href="javascript:conveyShow('${id}')">修改合同</a> <input
				type="submit" name="submit" value="提交"
				onclick="return isProcess('将结束合同流程');" /> <input class="reset"
				type="button" value="返回" class="reset" onclick="history.back()" />
		</div>
	</form>
</body>
</html>